#include "messagedetailtable.h"
#include "sqlitemanager.h"

#include <QDebug>
#include <QSqlQuery>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlRecord>

namespace Sqlite {

MessageDetailTable::MessageDetailTable(QObject *parent) :
    QObject(parent)
{
}

void MessageDetailTable::createTable()
{
    QString str = "CREATE TABLE IF NOT EXISTS MessageDetail (msgId INTEGER PRIMARY KEY,";
    str.append("extra TEXT, ");
    str.append("linkLocal TEXT)");

    QSqlQuery qry;
    qry.prepare(str );
    SqliteManager::instance()->doProcessSQLQuery(qry);
}

void MessageDetailTable::clearTable()
{

}

}
